package com.lx.service;

import com.lx.IRPCService.IHelloB;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class HelloA   {

    @DubboReference
    IHelloB iHelloB;

    public String sayHello(String name) {
        System.out.println("helloA "+ name);
        iHelloB.sayHello("我是A，我调用了B");
        return "helloA "+ name;
    }
}
